Skip to content

Fix/docs tutorial walkthrough - #52

Merged
matthewrgourd merged 8 commits into
mainfrom
fix/docs-tutorial-walkthrough
Jun 10, 2026
Merged

Fix/docs tutorial walkthrough#52
matthewrgourd merged 8 commits into
mainfrom
fix/docs-tutorial-walkthrough

Conversation

@matthewrgourd

Copy link
Copy Markdown
Owner

Summary

  • Fix docify new scaffold: add missing sidebars.ts generation, fix deprecated top-level onBrokenMarkdownLinks (moved to markdown.hooks), change routeBasePath from 'docs' to '/' to prevent broken-link error on homepage, and switch navbar item to type: 'doc'
  • Add npm run alternatives to docs: since @devdocify/cli is not published to npm, add local npm link instructions to the quick-start tutorial and npm run fallbacks to quick-start, add-docset, and add-playground guides
  • Update CLI reference: add sidebars.ts to the list of files generated by docify new
  • Fix .gitignore: add packages/*/node_modules and packages/*/package-lock.json to prevent nested dependencies from being committed

How it was tested

Ran the full quick-start tutorial end-to-end in a temp directory:

  1. npm link the CLI from packages/cli/
  2. docify new my-docs && cd my-docs && npm install
  3. npx docusaurus build -- confirmed clean build with no errors
  4. Verified docify validate and docify broken-links complete without errors
  5. Followed add-docset and add-playground guides to confirm npm run alternatives are accurate

Test plan

  • docify new test-project && cd test-project && npm install && npx docusaurus build succeeds
  • Quick-start tutorial is followable using the local npm link path
  • Verify deployment preview renders updated docs correctly

matthewrgourd and others added 4 commits June 10, 2026 08:33
The docify new command generated a docusaurus.config.ts referencing
./sidebars.ts but never created the file, causing every scaffolded
project to fail on build. This commit:

- Adds sidebars.ts (autogenerated sidebar) to the scaffold output
- Replaces the deprecated onBrokenMarkdownLinks location with
  markdown.hooks.onBrokenMarkdownLinks
- Changes the scaffolded routeBasePath from /docs to / so the docs
  index serves as the homepage (avoids a broken-link error on /)
- Adds npm run alternatives to the quick-start, add-docset, and
  add-playground guides for users without the CLI installed
- Adds local npm link instructions to the quick-start since
  @devdocify/cli is not yet published to npm
- Lists sidebars.ts in the CLI reference docify new output

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The root .gitignore only ignored /node_modules (root-scoped), so
packages/cli/node_modules got committed when CLI deps were installed
during testing. Add packages/*/node_modules to .gitignore to prevent
recurrence.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
doc-platform Ready Ready Preview, Comment Jun 10, 2026 8:57am

@github-actions

github-actions Bot commented Jun 10, 2026

Copy link
Copy Markdown

Preview deployment

Status ✅ Ready
URL https://doc-platform-nwqpuxdq0-matthewrgourds-projects.vercel.app
Commit 1be443b
Build Workflow run

Updated on each push to this PR.

The CLI is not published to npm, so the tutorial should give direct
instructions rather than hedging with "if published."

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Step 1 leaves you in packages/cli/, so without navigating first
the project gets created in the wrong place.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
matthewrgourd and others added 2 commits June 10, 2026 09:55
If dependencies are not installed, docify dev/build/validate show a
cryptic "command not found" error. Now assertProject checks for
node_modules and tells the user to run npm install.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@matthewrgourd
matthewrgourd merged commit 60269ea into main Jun 10, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant